package model

import (
	"github.com/astaxie/beego/orm"
)

type User struct {
	Id int           `orm:"pk;auto"`//Id:主键，自动增长
	Username string  `orm:"size(10)"`//用户名:设置为varchar
	Password int     //密码
	Address string   //住址
	Sex string       `orm:"size(5)"`//性别
	Age int          //年龄
}

//注册模型
func Init()  {
	orm.RegisterModel(new(User))
}

